//
//  PhotoCell.m
//  MyTrip
//
//  Created by zhang on 15/9/2.
//  Copyright (c) 2015年 张益. All rights reserved.
//

#import "PhotoCell.h"
#import "UIImageView+WebCache.h"

@implementation PhotoCell

- (void)dealloc
{
    [_image release];
    [super dealloc];
}

- (instancetype) initWithFrame:(CGRect)frame{
    self = [super initWithFrame:frame];
    if (self) {
        
        self.layer.borderWidth = 0.5;
        self.layer.borderColor = [UIColor whiteColor].CGColor;
        
        self.image = [[[UIImageView alloc] initWithFrame:CGRectMake(0, 0, frame.size.width, frame.size.height)] autorelease];
        [self.contentView addSubview:_image];
    }
    return self;
}

- (void)setValueWithDic:(NSDictionary*)dic{
    
    [self.image sd_setImageWithURL:[NSURL URLWithString:[dic objectForKey:@"photo_s"]] placeholderImage:[UIImage imageNamed:@"zhanweitu.jpg"]];
    
    
}





@end
